from typing import List

from pydantic import BaseModel


class ItemBase(BaseModel):
    msg: str


class ItemCreate(ItemBase):
    token: str
    mtype: str


class Item(ItemBase):
    id: int
    session_id: str
    msg: str

    class Config:
        orm_mode = True
